import packageAxios from '../request';
const axios = packageAxios.instance;
const apiVersion = '/api/v1/address';

const addressApi = {
    save (data) {
        return axios.post(apiVersion, data);
    },
    get (params) {
        return axios.get(apiVersion, { params });
    },
    delete (params) {
        return axios.delete(apiVersion, { params });
    },
    update (data) {
        return axios.put(apiVersion, data);
    }
};

export default addressApi;
